libmyc.so:mymath.o myfile.o
	gcc -shared -o $@ $^
mymath.o:mymath.c
	gcc -c -fPIC mymath.c
myfile.o:myfile.c
	gcc -c -fPIC myfile.c

.PHONY:clean
clean:
	rm -rf libmyc.so *.o 

.PHONY:output
output:
	mkdir -p mylib/include
	mkdir -p mylib/lib
	cp -rf *.h mylib/include
	cp -rf *.so mylib/lib
	tar -czf libmyc.tgz mylib
